package GameLogic;

public class EntityCoordinate implements Comparable{
		public double posX;
		public double posY;
        public double posZ;   //-1.0f, 1.0f
        public float angle; // in degrees, counterclockwise
        public float scaleX; //1.0 - 1 : 1, 1.5 - 150% of original
        public float scaleY;
		
		public int animFrame;
		public int modelID;

		public EntityCoordinate(double startX, double startY, double startZ, float startAngle, float startScaleX, float startScaleY, int ID)
		{
			posX = startX;
			posY = startY;
            posZ = startZ;
            angle = startAngle;
            scaleX = startScaleX;
            scaleY = startScaleY;
			
			animFrame = 0;
            modelID =  ID;
		}
		
		public EntityCoordinate()
		{
			posX = 0.0;
			posY = 0.0;
            posZ = 0.0;
            angle = 0.0f;
            scaleX = 1.0f;
            scaleY = 1.0f;

			
			animFrame = 0;
            modelID = 0;
		}

    @Override
    public int compareTo(Object o) {
        if (posZ < ((EntityCoordinate)o).posZ)
            return -1;
        if (posZ > ((EntityCoordinate)o).posZ)
            return 1;
        if (posZ > ((EntityCoordinate)o).posZ)
            return 0;
        return 0;
    }
}
